package com.mirana.module.common.model.dictpm;

import com.mirana.frame.base.model.BaseModel;
import com.mirana.frame.db.base.anno.ColumnPlus;
import com.mirana.frame.db.base.anno.FKPlus;
import com.mirana.frame.db.base.anno.Notes;
import com.mirana.frame.db.base.anno.TablePlus;
import lombok.Data;

import java.util.Date;

@Data
@Notes("商机失败归档")
@TablePlus(name = "dict_business_fail")
public class DictBusinessFail extends BaseModel {

    @Notes("商机id，外键")
    @ColumnPlus()
    @FKPlus(tableClass = DictBusiness.class)
    private Long business_id;

    @Notes("失败归档原因分类，字典 dict2_business_fail_type")
    @ColumnPlus(length = "2")
    private int fail_type;

    @Notes("失败归档说明")
    @ColumnPlus(default_val = "''", length = "200")
    private String fail_explain;

    @Notes("失败归档时间")
    @ColumnPlus()
    private Date fail_time;
}
